<?php
include("common.inc.php");
InitGP(array("action","email")); //初始化变量全局返回
include(INC_PATH."/mail.class.php");
$mail=new MailClass();


if(!empty($email)){
	$data = $mail->getdata('1',"email='".$email."'");
	$eid = $data[0]['eid'];
	
	$reg = $mail->state($eid , 2);
	if($reg){
		showmsg("修改成功... 5秒後自動轉到首頁!","index.php",'','5000');//成功
	}else{
		showmsg("修改失敗! 可能E-mail輸入錯誤!","cancel_email.php");//失敗
	}
	
}

include template('cancel_email');//包含输出指定模板
?>